- 1400/02/08
- 0
- 335
مشکل thread تزریق وابستگی سرویس
Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
Object name: 'DataBaseContext'.'
اومدم یه تریدی ایجاد کردم که یه عملیاتی انجام بده اخر اونو ذخیره کنه که موقع ذخیره این ارور رو دارم
- 1400/02/08
در کانکشن استرینگ مقدار زیر رو وارد کنید
MultipleActiveResultSets=true
"Data Source=.;Initial Catalog=DbName;Integrated Security=True;MultipleActiveResultSets=true"
پاسخی برای این باگ ارسال کنید
لطفا کدها را درون قطعه کد ارسال نمایید
برای ارسال پاسخ باید وارد حساب کاربری خود شوید
ورود به حساب کاربری